from app import db


class RoomStatus(db.Model):
    _table_name = 'room_status'
    roomid = db.Column(db.Integer, primary_key=True, autoincrement=True)
    temperature = db.Column(db.INT, nullable=False)
    moisture = db.Column(db.INT, nullable=False)
    door = db.Column(db.BOOLEAN, nullable=False)
    electricity = db.Column(db.INT, nullable=False)
